﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CVSToExcel
{
    public partial class frmRenameFile : Form
    {
        
        public frmRenameFile(FileItem fileItem)
        {
            InitializeComponent();
            FileItem = fileItem;
            lblfileName.Text = fileItem.DisplayName;
        }

        public FileItem FileItem { get; set; }

        private void btnDone_Click(object sender, EventArgs e)
        {
            this.FileItem.TabName = txtNewFileName.Text;
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
    }
}
